package com.yidu.ladder.base.domain;

import java.io.Serializable;

public class Riparea implements Serializable{

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * 定区Id
	 */
	private String ripAreaId;
	/**
	 * 定区名
	 */
	private String ripAreaName;
	/**
	 * 负责人Id
	 */
	private String staffId;
	/**
	 * 负责人名
	 */
	private String staffName;
	/**
	 * 描述
	 */
	private String description;
	/**
	 * 是否可用	Y:可用   N:不可用
	 */
	private String useable;
	
	public Riparea() {
		super();
	}

	public Riparea(String ripAreaId, String ripAreaName, String staffId, String staffName, String description,
			String useable) {
		super();
		this.ripAreaId = ripAreaId;
		this.ripAreaName = ripAreaName;
		this.staffId = staffId;
		this.staffName = staffName;
		this.description = description;
		this.useable = useable;
	}

	public String getRipAreaId() {
		return ripAreaId;
	}

	public void setRipAreaId(String ripAreaId) {
		this.ripAreaId = ripAreaId;
	}

	public String getRipAreaName() {
		return ripAreaName;
	}

	public void setRipAreaName(String ripAreaName) {
		this.ripAreaName = ripAreaName;
	}

	public String getStaffId() {
		return staffId;
	}

	public void setStaffId(String staffId) {
		this.staffId = staffId;
	}

	public String getStaffName() {
		return staffName;
	}

	public void setStaffName(String staffName) {
		this.staffName = staffName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getUseable() {
		return useable;
	}

	public void setUseable(String useable) {
		this.useable = useable;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((description == null) ? 0 : description.hashCode());
		result = prime * result + ((ripAreaId == null) ? 0 : ripAreaId.hashCode());
		result = prime * result + ((ripAreaName == null) ? 0 : ripAreaName.hashCode());
		result = prime * result + ((staffId == null) ? 0 : staffId.hashCode());
		result = prime * result + ((staffName == null) ? 0 : staffName.hashCode());
		result = prime * result + ((useable == null) ? 0 : useable.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Riparea other = (Riparea) obj;
		if (description == null) {
			if (other.description != null)
				return false;
		} else if (!description.equals(other.description))
			return false;
		if (ripAreaId == null) {
			if (other.ripAreaId != null)
				return false;
		} else if (!ripAreaId.equals(other.ripAreaId))
			return false;
		if (ripAreaName == null) {
			if (other.ripAreaName != null)
				return false;
		} else if (!ripAreaName.equals(other.ripAreaName))
			return false;
		if (staffId == null) {
			if (other.staffId != null)
				return false;
		} else if (!staffId.equals(other.staffId))
			return false;
		if (staffName == null) {
			if (other.staffName != null)
				return false;
		} else if (!staffName.equals(other.staffName))
			return false;
		if (useable == null) {
			if (other.useable != null)
				return false;
		} else if (!useable.equals(other.useable))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Riparea [ripAreaId=" + ripAreaId + ", ripAreaName=" + ripAreaName + ", staffId=" + staffId
				+ ", staffName=" + staffName + ", description=" + description + ", useable=" + useable + "]";
	}
	
}
